home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2009 February
/
PCWFEB09.iso
/
Software
/
Linux
/
Kubuntu 8.10
/
kubuntu-8.10-desktop-i386.iso
/
casper
/
filesystem.squashfs
/
usr
/
lib
/
libgtk2.0-0
/
update-gtk-immodules
< prev
Wrap
Text File
|
2008-10-18
|
770b
|
32 lines
#!/bin/sh
# this script is a no-op since 2.10.3-2
exit 0
set -e
VERSION="2.14.4"
GTK_BINARY_VERSION="2.10.0"
APIVER="2.0"
SHARED_PKG="libgtk2.0-0"
TMPFILE=$(mktemp -t "gtk+$APIVER-$VERSION.XXXXXXXXXX")
echo -n "Updating the IM modules list for Gtk+ $VERSION..."
"/usr/lib/$SHARED_PKG/gtk-query-immodules-$APIVER" \
$(find "/usr/lib/gtk-$APIVER/$GTK_BINARY_VERSION/immodules" -name '*.so') \
> "$TMPFILE"
if [ "x`cat "$TMPFILE" | grep -v '^#'`" = "x" ]; then
echo "no Gtk+ IM modules found."
else
echo "done."
fi
if ! test -d "/etc/gtk-$APIVER"; then
echo -n "Creating /etc/gtk-$APIVER..."
mkdir "/etc/gtk-$APIVER"
echo "done."
fi
cp "$TMPFILE" "/etc/gtk-$APIVER/gtk.immodules"
chmod 644 "/etc/gtk-$APIVER/gtk.immodules"
rm -f "$TMPFILE"